package com.dt.dubai.mech.entity;

import com.dt.dubai.core.comm.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.validator.constraints.*;

import javax.persistence.Table;
import javax.validation.constraints.*;


/*
 * 顾客与优惠券关联表
 */

@Data
@Table(name = "dt_mech_coupon_customer")
@EqualsAndHashCode(callSuper = false)
public class MechCouponCustomerEntity extends BaseEntity {

    //顾客登录记录ID
    @NotNull(message = "customerLoginRecordId参数不能为空")
    Long customerLoginRecordId;

    //优惠券记录ID
    Long couponRecordId;

    //是否使用 0-未使用,1-已使用
    Boolean yesUse;


}
